<script setup lang='ts'>
const visible = defineModel<boolean>()
const fileList = ref([
  {
    name: '罗可云专线合同.pdf',
    url: 'https://element-plus.org/images/element-plus-logo.svg',
  },
  {
    name: '罗可云网络合作保密协议.pdf',
    url: 'https://element-plus.org/images/element-plus-logo.svg',
  },
  {
    name: '罗可云网络合作协议.pdf',
    url: 'https://element-plus.org/images/element-plus-logo.svg',
  },
])
</script>

<template>
  <el-dialog
    v-model="visible"
    title="上传合同附件"
    width="30%"
    :before-close="() => visible = false"
  >
    <div>
      <el-upload
        v-model:file-list="fileList" class="upload-demo w-full"
        action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15" multiple :limit="3"
      >
        <el-button type="primary">
          上传
        </el-button>
      </el-upload>
    </div>
    <el-form mt3>
      <el-form-item label="备注">
        <el-input type="textarea" />
      </el-form-item>
    </el-form>

    <template #footer>
      <span>
        <el-button @click=" visible = false">关闭</el-button>
        <el-button type="primary" @click="visible = false">确定</el-button>
      </span>
    </template>
  </el-dialog>
</template>

<style scoped lang='scss'>

</style>
